import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui';
import Vuex from 'vuex';
import router from './router/index.js'
import "@/styles/common.scss"
import 'element-ui/lib/theme-chalk/index.css';
import Avue from '@smallwei/avue';
import '@smallwei/avue/lib/index.css';
import axios from 'axios'
import store from './store'
import elDragDialog from './directive/el-dragDialog/index';
//组件
import basicContainer from './components/basic-container/main'
import BtnGroups from '@/components/frame-page/BtnGroups'; // 通用操作按钮组件
import PageHeaderTool from '@/components/frame-page/PageHeaderTool'; // 页面表单头部标题、按钮布局工具栏
import TableColumnBtns from '@/components/frame-page/TableColumnBtns'; // 列表操作按钮组件
// 注册全局容器
Vue.component('basic-container', basicContainer)
Vue.component('btn-groups', BtnGroups);
Vue.component('page-header-tool', PageHeaderTool);
Vue.component('table-column-btns', TableColumnBtns);
Vue.use(elDragDialog)
Vue.config.productionTip = false
Vue.use(ElementUI);
Vue.use(Avue, { axios })
Vue.use(Vuex)
window.axios = axios
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
